package  
{
	import net.flashpunk.Entity;
	import net.flashpunk.graphics.Image;
	
	/**
	 * ...
	 * @author Donatello
	 */
	public class Costum extends Entity
	{
		
		[Embed(source = "img/inspectorcostum.png")] private const INSPECTOR_IMG:Class;
		[Embed(source = "img/batmancostum.png")] private const BATMAN_IMG:Class;
		
		private var costumImg:Image;
		
		public function Costum(px : Number , py :Number,tipo:int) 
		{
			if (tipo == 0)
			{	
				costumImg = new Image(INSPECTOR_IMG);
				setHitbox(23, 45);
				type = "InspectorCostum";
			}
			else
			{
				costumImg = new Image(BATMAN_IMG);
				setHitbox(20, 45);
				type = "BatmanCostum";
			}
			
			graphic = costumImg;
			
			x = px;
			y = py;
			
		}
		
	}

}